const fs = require('fs')

const file = process.argv[2] ?? __filename

fs.createWriteStream(file)
  .pipe(process.stdout)